

        <g:set var="entityName" value="${message(code: 'leaveWord.label', default: 'LeaveWord')}" />
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                            <g:sortableColumn property="personname" title="${message(code: 'leaveWord.personname.label', default: 'Personname')}" />
                        
                            <g:sortableColumn property="contact" title="${message(code: 'leaveWord.contact.label', default: 'Contact')}" />
                        
                            <g:sortableColumn property="content" title="${message(code: 'leaveWord.content.label', default: 'Content')}" />
                        
                            <th><g:message code="leaveWord.student.label" default="Student" /></th>
                   	    
                            <th><g:message code="leaveWord.teacher.label" default="Teacher" /></th>
                   	    
                            <g:sortableColumn property="createTime" title="${message(code: 'leaveWord.createTime.label', default: 'Create Time')}" />
                        
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${leaveWordInstanceList}" status="i" var="leaveWordInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="show" id="${leaveWordInstance.id}">${fieldValue(bean: leaveWordInstance, field: "personname")}</g:link></td>
                        
                            <td>${fieldValue(bean: leaveWordInstance, field: "contact")}</td>
                        
                            <td>${fieldValue(bean: leaveWordInstance, field: "content")}</td>
                        
                            <td>${fieldValue(bean: leaveWordInstance, field: "student")}</td>
                        
                            <td>${fieldValue(bean: leaveWordInstance, field: "teacher")}</td>
                        
                            <td><g:formatDate date="${leaveWordInstance.createTime}" /></td>
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <x:paginate total="${leaveWordInstanceTotal}" />
            </div>
